home *** CD-ROM | disk | FTP | other *** search
/ Interplay's Learn to Program Basic (Review Copy) / Learn to Program Basic Review Copy (Interplay)(June 23, 1998).ISO / pc / ltpbasic / refxmpl / tan.bas < prev    next >
BASIC Source File  |  1998-04-07  |  192b  |  12 lines

  1. Rem Print the tangent of angles
  2. Rem between 0 and 360 degrees
  3. CLS
  4. For angle = 0 To 360
  5.   REM Convert degrees to radians
  6.   rad = angle / (3.14159 * 2)
  7.   t = Tan(rad)
  8.   Print t
  9. Next angle
  10. End
  11.